package com.hongtu.brank1.fegin;

import com.hongtu.brank1.fallback.Bank2ClientFallback;
import com.hongtu.brank1.fegin.fallback.Brank2Fallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "brank2",fallback = Brank2Fallback.class)
public interface Bank2Client {
    //远程调用李四的微服务
    @GetMapping("/transfer")
    public  String transfer(@RequestParam("amount") Double amount);
}
